import request from '@/util/request'
import URL from '@/serverAPI.config'

export function register (data = {}) {
  return request({
    url: URL.registerUser,
    method: 'post',
    data
  })
}

export function login (data = {}) {
  return request({
    url: URL.loginUser,
    method: 'post',
    data
  })
}
